package com.zebra.remoting.config;


import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 网关向注册中心 询问 服务器信息 响应信息
 */
@Data
@NoArgsConstructor
public class AskTmsResponseMessage extends ZebraBaseMessage<AskTmsResponseMessage> {
    private int serverId;
    @Override
    public void write(ByteBuf b) {
        writeInt(b, this.serverId);

    }

    @Override
    public AskTmsResponseMessage read(ByteBuf b) {
        this.serverId = readInt(b);
        b.release();
        return this;
    }


}
